package lesson6;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;

import java.util.concurrent.TimeUnit;


public class SeleniumTestBase {
        protected WebDriver driver;
        protected static String HTTP_URL = "http://rozetka.com.ua/";
        protected static String HTTP_REGISTRATION_URL = "http://my.rozetka.com.ua/signup/";
        protected static String SIGNIN = "signin";
        protected static String SIGNINUP_LINK = "auth-f-signup-link";
        protected static String TITLE = "title";
        protected static String EMAIL = "email";
        protected static String PASSWORD = "password";
        protected static String SIGN_BUTTON = "button-css-green";
        protected static String M_USER_TITLE = "m-user-title";

        @BeforeClass
        public void setUp() throws Exception {
            driver = new FirefoxDriver();
            driver.manage().window().maximize();
            driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
        }

        @AfterClass
        public void tearDown() throws Exception {
            driver.quit();
        }
    }

